
// OnlyForYouDlg.h : header file
//

#pragma once 
#include "image/DrawPool.h"

#include <mmsystem.h>   
#pragma comment(lib, "winmm.lib")   

enum 
{
	TIMER_UPDATE = 5000,
};

class COnlyForYouDlg : public CDialogEx
{
// Construction
public:
	COnlyForYouDlg(CWnd* pParent = NULL);	// standard constructor
	~COnlyForYouDlg();

// Dialog Data
	enum { IDD = IDD_ONLYFORYOU_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

protected:
	CRect m_rcClient;
	HDC m_hCacheDC;
	CDrawPool m_ItemPool; 

private:
	void Draw();
	void UpdateUI();
	BOOL ImageFromIDResource(UINT nID, LPCTSTR sTR, Gdiplus::Image** pImg);

private:
	// Generated message map functions
	virtual BOOL OnInitDialog();
	virtual	BOOL PreTranslateMessage(MSG* pMsg);
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnTimer(UINT_PTR nIDEvent);
};
